package cc.co.bengkeljava.Enum;

public class TesterWarnaFinal {
	public void tester() {
		tampilkanWarna(WarnaFinal.MERAH);
	}

	public void tampilkanWarna(int warna) {
		switch (warna) {
		case WarnaFinal.HITAM:
			System.out.println("HITAM");
			break;
		case WarnaFinal.KUNING:
			System.out.println("KUNING");
			break;
		case WarnaFinal.HIJAU:
			System.out.println("HIJAU");
			break;
		case WarnaFinal.MERAH:
			System.out.println("MERAH");
			break;
		}
	}

}
